home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / _FilePrint.au3 < prev    next >
Text File  |  2006-06-17  |  297b  |  11 lines

  1. #include <File.au3>
  2.  
  3. $file = FileOpenDialog("Print File", "", "Text Documents (*.txt)", 1)
  4. If @error Then Exit
  5.  
  6. $print = _FilePrint($file)
  7. If $print Then
  8.     MsgBox(0, "Print", "The file was printed.")
  9. Else
  10.     MsgBox(0, "Print", "Error: " & @error & @CRLF & "The file was not printed.")
  11. EndIf